package datatypes.tv;

public class tvProgram {

	private String name;
	private String id;
	private String program_creator;
	private String air_date_of_first_episode;
	private String air_date_of_final_episode;
	private String number_of_episodes;
	private String genre;
	private String regular_cast;
	private String number_of_seasons;

	public tvProgram(String name, String id, String program_creator,
			String air_date_of_first_episode, String air_date_of_final_episode,
			String number_of_episodes, String genre, String regular_cast,
			String number_of_seasons) {

		this.name = name;
		this.id = id;
		this.program_creator = program_creator;
		this.air_date_of_first_episode = air_date_of_first_episode;
		this.air_date_of_final_episode = air_date_of_final_episode;
		this.number_of_episodes = number_of_episodes;
		this.genre = genre;
		this.regular_cast = regular_cast;
		this.number_of_seasons = number_of_seasons;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getProgram_creator() {
		return program_creator;
	}

	public void setProgram_creator(String program_creator) {
		this.program_creator = program_creator;
	}

	public String getAir_date_of_first_episode() {
		return air_date_of_first_episode;
	}

	public void setAir_date_of_first_episode(String air_date_of_first_episode) {
		this.air_date_of_first_episode = air_date_of_first_episode;
	}

	public String getAir_date_of_final_episode() {
		return air_date_of_final_episode;
	}

	public void setAir_date_of_final_episode(String air_date_of_final_episode) {
		this.air_date_of_final_episode = air_date_of_final_episode;
	}

	public String getNumber_of_episodes() {
		return number_of_episodes;
	}

	public void setNumber_of_episodes(String number_of_episodes) {
		this.number_of_episodes = number_of_episodes;
	}

	public String getGenre() {
		return genre;
	}

	public void setGenre(String genre) {
		this.genre = genre;
	}

	public String getRegular_cast() {
		return regular_cast;
	}

	public void setRegular_cast(String regular_cast) {
		this.regular_cast = regular_cast;
	}

	public String getNumber_of_seasons() {
		return number_of_seasons;
	}

	public void setNumber_of_seasons(String number_of_seasons) {
		this.number_of_seasons = number_of_seasons;
	}

	@Override
	public String toString() {

		StringBuilder sb = new StringBuilder();
		
		if (id != null && id.length() > 0) {
			sb.append("id: " + id + "\n");
		}
		
		if (name != null && name.length() > 0) {
			sb.append("name: " + name + "\n");
		}
		
		if (program_creator != null && program_creator.length() > 0) {
			sb.append("program_creator: " + program_creator + "\n");
		}
		
		if (air_date_of_first_episode != null
				&& air_date_of_first_episode.length() > 0) {
			sb.append("air_date_of_first_episode: " + air_date_of_first_episode
					+ "\n");
		}
		
		if (air_date_of_final_episode != null
				&& air_date_of_final_episode.length() > 0) {
			sb.append("air_date_of_final_episode: " + air_date_of_final_episode
					+ "\n");
		}
		
		if (number_of_episodes != null && number_of_episodes.length() > 0) {
			sb.append("number_of_episodes: " + number_of_episodes + "\n");
		}
		
		if (genre != null && genre.length() > 0) {
			sb.append("genre: " + genre + "\n");
		}
		
		if (regular_cast != null && regular_cast.length() > 0) {
			sb.append("regular_cast: " + regular_cast + "\n");
		}
		
		if (number_of_seasons != null && number_of_seasons.length() > 0) {
			sb.append("number_of_seasons: " + number_of_seasons + "\n");

		}
		
		return sb.toString();

	}

}
